package io.lvdaxian.middleware.db.router.test.interfaces;

import io.lvdaxian.middleware.db.router.test.infrastructure.dao.IUserDao;
import io.lvdaxian.middleware.db.router.test.infrastructure.po.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {
  
  private final Logger logger = LoggerFactory.getLogger(UserController.class);
  
  @Resource
  private IUserDao userDao;
  
  @RequestMapping(path = "/api/queryUserInfoById", method = RequestMethod.GET)
  public User queryUserInfoById() {
    return userDao.queryUserInfoByUserId(new User("1"));
  }
}
